/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.github-btn {
  margin-top: -10%;
  display: flex;
  flex-direction: row;
}

.gh-ico {
  float: left;
}

.gh-btn,
.gh-count {
  border: 1px solid #bababa;
  border-bottom-color: #a6a6a6;
  border-radius: 6px;
  color: #212121;
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  padding: 6px 14px 6px 12px;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff;
  white-space: nowrap;
}

.gh-btn {
  .gradient(#fafafa, #eaeaea);
}

.gh-btn:hover,
.gh-btn:focus,
.gh-btn:active {
  background-color: #3072b3;
  border-color: #518cc6 #518cc6 #2a65a0;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
}

.gh-btn:hover,
.gh-btn:focus {
  .gradient(#599bdc, #3072b3);
}

.gh-btn:active {
  -moz-box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
  -webkit-box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
  background-image: none;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.gh-ico {
  background-image: url();
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 56px 28px;
  height: 28px;
  margin: 2px 6px 0 0;
  width: 28px;
}

.gh-btn:hover .gh-ico,
.gh-btn:focus .gh-ico,
.gh-btn:active .gh-ico {
  background-position: -28px 0;
}

.gh-count {
  background-color: #fafafa;
  display: block !important;
  display: none;
}

.gh-count:hover,
.gh-count:focus {
  color: #4183C4;
}

.gh-triangle {
    position: relative;
    margin-left: 11px;
    margin-right: -1px;
}

.gh-triangle:before,
.gh-triangle:after {
  border-color: transparent;
  border-style: solid;
  content: '';
  position: absolute;
}

.gh-triangle:before{
  border-right-color: #fafafa;
  border-width: 8px 8px 8px 0;
  left: -7px;
  margin-top: -8px;
  top: 50%;
}

.gh-triangle:after{
  border-right-color: #bababa;
  border-width: 9px 9px 9px 0;
  left: -8px;
  margin-top: -9px;
  top: 50%;
  z-index: -1;
}

@media only screen and (max-width: 680px) {
  .gh-btn,
  .gh-count {
    font-size: 16px;
    line-height: 21px;
    padding: 4px 12px 4px 10px;
  }

  .gh-ico {
    background-size: 36px 18px;
    height: 18px;
    margin: 1px 4px 0 0;
    width: 18px;
  }

  .gh-btn:hover .gh-ico,
  .gh-btn:focus .gh-ico,
  .gh-btn:active .gh-ico {
    background-position: -18px 0;
  }
}

.gradient (@startColor: #eee, @endColor: white) {
  background-color: @startColor;
  background: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor));
  background: -webkit-linear-gradient(top, @startColor, @endColor);
  background: -moz-linear-gradient(top, @startColor, @endColor);
  background: -ms-linear-gradient(top, @startColor, @endColor);
  background: -o-linear-gradient(top, @startColor, @endColor);
}
